<?php
$id = $epg['id'];
$data = json_decode(file_get_contents('https://content-api.mytvsuper.com/v1/epg?network_code='.$id.'&from='.date('Ymd').'&to='.date('Ymd')));
$data = $data[0]->item[0]->epg;
for($i = 0; $i <= count($data) - 1; $i++) {
    echo '<li><span>'.preg_replace('/(.*?) /','',$data[$i]->start_datetime).'&nbsp&nbsp&nbsp&nbsp'.$data[$i]->programme_title_tc.'</span></li>';
};